# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=libliftoff
pkgver=0.5.0
pkgrel=0
pkgdesc="Lightweight KMS plane library"
url="https://gitlab.freedesktop.org/emersion/libliftoff"
license="MIT"
arch="all"
makedepends="meson libdrm-dev"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v$pkgver/libliftoff-v$pkgver.tar.gz
	no-werror.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . build
	meson compile -C build
}

check() {
	meson test --no-rebuild -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
0ca13a298af6510b85adb30282014474e623f9759bf09fcd865ef4e9634db4401cd5e5bd5ab9e2c5848a5bfd59cd43e3035103814c355d9c164880a7a1108c74  libliftoff-v0.5.0.tar.gz
75f25b9fe79cb4d3d05abcacaccae804c3cfdf08b2e322891ce15cfd7d2a2aae6ac34186611896bdbffd19da975cc4beadc546ea5915bb07990daf26ff1c18ce  no-werror.patch
"
